package com.zhiyou.brank.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zhiyou.brank.service.FlyTeacherService;
import com.zhiyou.service.TeacherManageService;
import com.zhiyou.utils.JsonResult;
@RestController
@RequestMapping("teacher/")
public class FlyTeacherController {
@Autowired
FlyTeacherService flyTeacherService;

	@GetMapping(value="brandSelectOne/{teacher_id}")
	public JsonResult brandSelectOne(@PathVariable("teacher_id")Integer teacher_id, HttpServletRequest req,HttpServletResponse rep){
		return new JsonResult(flyTeacherService.brankOne(teacher_id), "查询成功");		
	}
	
}
